import metaInterface from '../../meta.interface';
import { CalendarOutlined } from "@ant-design/icons-vue";
export default {
  path: 'channelManagement',
  name: 'channelManagement',
  redirect: '/channelManagement/promotionChannels',
  meta: {
    title: '渠道管理',
    icon: () => <CalendarOutlined />,
  } as metaInterface,
  children: [
    {
      path: 'promotionChannels',
      name: 'promotionChannels',
      redirect: '/channelManagement/promotionChannels/firstLevelPage',
      meta: {
        title: '推广渠道',
      } as metaInterface,
      children: [
        {
          path: 'firstLevelPage',
          name: 'firstLevelPage',
          component: () => import('@/views/index/channelManagement/promotionChannels/firstLevelPage/firstLevelPage'),
          meta: {
            title: '一级渠道',
          } as metaInterface,
        },
        {
          path: 'secondaryPage',
          name: 'secondaryPage',
          component: () => import('@/views/index/channelManagement/promotionChannels/secondaryPage/secondaryPage'),
          meta: {
            title: '二级渠道',
          } as metaInterface,
        },
        {
          path: 'threeLevelPage',
          name: 'threeLevelPage',
          component: () => import('@/views/index/channelManagement/promotionChannels/threeLevelPage/threeLevelPage'),
          meta: {
            title: '三级渠道',
          } as metaInterface,
        },
        {
          path: 'personalSecondaryPage',
          name: 'personalSecondaryPage',
          component: () => import('@/views/index/channelManagement/promotionChannels/personalSecondaryPage/personalSecondaryPage'),
          meta: {
            title: '查看二级渠道',
          } as metaInterface,
        },
        {
          path: 'personalThreeLevelPage',
          name: 'personalThreeLevelPage',
          component: () => import('@/views/index/channelManagement/promotionChannels/personalThreeLevelPage/personalThreeLevelPage'),
          meta: {
            title: '查看三级渠道',
          } as metaInterface,
        },
        {
          path: 'roleChannelPage',
          name: 'roleChannelPage',
          component: () => import('@/views/index/channelManagement/roleChannelPage/roleChannelPage'),
          meta: {
            title: '分配渠道',
            activeMenu: 'firstLevelPage',
          } as metaInterface,
        }
      ]
    },
    {
      path: 'promotionPerformancePage',
      name: 'promotionPerformancePage',
      component: () => import('@/views/index/channelManagement/promotionPerformancePage/promotionPerformancePage'),
      meta: {
        title: '推广业绩',
      } as metaInterface,
    },
    {
      path: 'personalPerformancePage',
      name: 'personalPerformancePage',
      component: () => import('@/views/index/channelManagement/promotionPerformancePage/personalPerformancePage/personalPerformancePage'),
      meta: {
        title: '个人业绩',
      } as metaInterface,
    },

  ],
}